package com.cblz.bd.server.core.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cblz.bd.common.core.entity.BaAdminGroup;

import java.util.List;

/**
* @author yanjieping
* @description 针对表【ba_admin_group(管理分组表)】的数据库操作Mapper
* @createDate 2022-11-04 15:09:53
* @Entity com.cblz.bd.common.core.entity.BaAdminGroup
*/
public interface BaAdminGroupMapper extends BaseMapper<BaAdminGroup> {
    List<BaAdminGroup> getBdAdminRulesByLoginId(Integer loginId);

    void addGroup(BaAdminGroup baAdminGroup);

    BaAdminGroup getGroupById(Integer id);

    void deleteGroupById(Integer id);

    int countIsHasLevel(Integer id);

    void deleteGroupByIds(Integer[] ids);

    int countIsBindAdmin(Integer id);

    void updateGroup(BaAdminGroup baAdminGroup);
}




